package org.jsola.hr.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 合同员工信息查询
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ContractEmpInfoDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "公司id", required = true)
    @NotNull(message = "公司id不能为空")
    private String companyId;

    @ApiModelProperty(notes = "合同模板id", required = true)
    @NotNull(message = "合同模板不能为空")
    private Long templateId;

    @ApiModelProperty(notes = "合同员工id集合", required = true)
    @NotNull(message = "请选择合同员工")
    @Valid
    private List<String> empIdList;

}

